import numpy as np
from sklearn import datasets

a = datasets.load_iris()
b = np.array(a.data)
b.sort()
print(b)
c = b[:, 3]
print(np.unique(c))
print(c.sum())
print(np.cumsum(c))
print(b[:5, 3])
print(np.mean(c),'\n',np.var(c))